package com.jumi.microservice.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jm.member.common.api.web.R;
import com.jumi.microservice.dto.reponse.JmUserReponse;
import com.jumi.microservice.dto.reponse.api.RealnameWithdraw;
import com.jumi.microservice.dto.request.JmUserQueryRequest;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

/**
 * @author Dirk
 * @Date 2020-07-07 15:46
 */
public interface IMemberService {

    R<JmUserReponse> getMemberByUid(Integer uid);

    R<Integer> getUidByMobile(String mobile);

    public R<List<JmUserReponse>> getMemberByUids(List<Integer> uids);

    public R<Page> getMemberByRequest(JmUserQueryRequest request, Integer current, Integer size);

    /**
     * 根据用户id获取邀请用户数量
     *
     * @param uid 用户id
     * @return
     */
    public R getInviteUsers(Long uid);

    public R<RealnameWithdraw> getWithdraw(Integer uid);

    R<Boolean> updateUserQrByUid(String qrCode, Integer uid);
}
